#include"list.h"

void test1()
{
    LTNode* plist = LTInit();
    LTPushBack(plist, 1);
    LTPushBack(plist, 2);
    LTPushBack(plist, 3);
    LTPushBack(plist, 4);
    LTPushBack(plist, 5);
    LTPushBack(plist, 6);

    LTPrint(plist);

    LTPopBack(plist);
    LTPopBack(plist);
    LTPrint(plist);

    LTPushFront(plist, 0);
    LTPushFront(plist, 10);
    LTPushBack(plist, 10);
    LTPrint(plist);

    LTPopFront(plist);
    LTPopBack(plist);
    LTPrint(plist);
}

void test2()
{
    LTNode* plist = LTInit();
    LTPushFront(plist, 3);
    LTPushFront(plist, 2);
    LTPushFront(plist, 1);

    LTPushBack(plist, 4);
    LTPushBack(plist, 5);
    LTPushBack(plist, 6);
    LTPrint(plist);

    LTPopFront(plist);
    LTPopBack(plist);
    LTPrint(plist);


    LTDestory(plist);
    plist = NULL;
}

int main()
{
    test2();
    return 0;
}
